package model.app;

import android.databinding.BaseObservable;

import java.io.Serializable;

public class Rsp<T> extends BaseObservable implements Serializable{

    public static final int STATUS_OK=0;

    private int status;
    private String error;
    private T data;

    public Rsp() {
    }

    public Rsp(int status, String error) {
        this.status = status;
        this.error = error;
    }

    public Rsp(int status, String error, T data) {
        this.status = status;
        this.error = error;
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }


}
